package com.cyw.common.config.mybatis.handler;

import com.cyw.common.config.mybatis.handler.base.ListJsonTypeHandler;
import com.cyw.common.utils.BaseUtils;
import com.cyw.common.utils.JsonUtils;
import com.google.common.collect.Lists;

import java.util.List;

/**
 * @Author:cyw
 * @CreateTime: 2021/3/3 20:58
 **/
public class ListString2JsonTypeHandler extends ListJsonTypeHandler<String> {

    @Override
    protected List<String> deserializer(String info) {
        return BaseUtils.isEmpty(info) ? Lists.newArrayList() : JsonUtils.toListIfPresent(info, String.class);
    }
}

    
    
    
    
    
    
    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    